﻿<phone:PhoneApplicationPage 
    x:Class="VinoCellar.Wine"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:vino="clr-namespace:VinoCellar.Controls"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <controls:Pivot Title="VINO CELLAR">

            <controls:PivotItem Header="details">
                <vino:WineDetailsControl x:Name="wineDetailsControl" Visibility="Collapsed" />
            </controls:PivotItem>

            <controls:PivotItem Header="taste">
                <vino:TasteControl x:Name="tasteControl" />
            </controls:PivotItem>

            <controls:PivotItem Header="cellar">
                <vino:CellarControl x:Name="cellarControl" />
            </controls:PivotItem>
            
        </controls:Pivot>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">

            <shell:ApplicationBarIconButton
                x:Name="appBarDeleteButton"
                IconUri="/Images/appbar.delete.rest.png"
                Text="delete"
                Click="appBarDeleteButton_Click"/>
            
            <shell:ApplicationBarIconButton
                x:Name="appBarSaveButton"
                IconUri="/Images/appbar.save.rest.png"
                Text="save"
                Click="appBarSaveButton_Click" />

        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>